<?php
namespace console\controllers;

use yii;
use yii\console\Controller;
use Codeception\Step\Condition;

/**
 * 专门用于检查迁移通讯录的
 * @author mayn
 *
 */
class HelperController extends Controller
{
  
    public function actionIndex()
    {
        
        for ($i =0; $i < 100; $i++) {
            $res = file_get_contents("http://qttest.youmaijinkong.cn/admin/index.php?g=info&m=Migrate&a=memberPhoneUp&command=start");
            echo $res ."\r\n";
            file_put_contents('D:\tmp\memberphone\memberPhoneUplog.txt', $res."\r\n", FILE_APPEND);
            sleep(1);
        } 
    }
    
}